
<template>
  <div id="app">
    <div>
      <van-tabbar v-model="active">
        <van-tabbar-item v-model="active" to="/home" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item v-model="active" to="/DisplayBox" icon="gift-o" >显盒</van-tabbar-item>
        <van-tabbar-item v-model="active" to="/Community" icon="friends-o" info="5">社区</van-tabbar-item>
        <van-tabbar-item v-model="active" to="/My" icon="setting-o" info="20">我的</van-tabbar-item>
      </van-tabbar>
    </div>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style>
.page{
  height: 100vh;
  background: #f7f8fa;
}
</style>
